import plotly.express as px

#df 是一个pandas的DataFrame数据
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length")
fig.show()